import Vue from 'vue'
import App from './App'
import router from './router'
import store from '@/store'
import ElementUI from 'element-ui'
import VueI18n from 'vue-i18n'
import i18n from './i18n/i18n'
import api from './api'
import echarts from 'echarts'
import moment from 'moment'
import lodash from 'lodash'
import WebsocketHeartbeat from 'websocket-heartbeat-js'
import plugins from './plugins' // 导入自定义插件

import 'element-ui/lib/theme-chalk/index.css'
import 'element-ui/lib/theme-chalk/display.css'
import '@/assets/css/base.scss'
import '@/assets/css/rewrite.scss'
import '@/assets/iconfont/iconfont.css'

import config from './config'

window.config = config

Vue.prototype.$echarts = echarts
Vue.prototype.$moment = moment
Vue.prototype._ = lodash
Vue.prototype.$WebsocketHeartbeat = WebsocketHeartbeat
Vue.use(plugins);
Vue.config.productionTip = false
Vue.use(ElementUI, {
  size: 'mini'
})
Vue.use(VueI18n);
Vue.use(api);

new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app')
